/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package edu.au.uq.datamining.util;
import weka.core.FastVector;
import weka.core.Attribute;
/**
 *
 * @author oracle
 */
public class DatamartInstance {
    public static FastVector createAttributes(){
            FastVector fvNominalVal0 = new FastVector(2);
        fvNominalVal0.addElement("M");
        fvNominalVal0.addElement("F");
        Attribute Attribute0 = new Attribute("GENDER", fvNominalVal0);

        FastVector fvNominalVal1 = new FastVector(8);
        fvNominalVal1.addElement("CONCUBINATO");
        fvNominalVal1.addElement("CASADOSEPAR.BIENES");
        fvNominalVal1.addElement("DIVORCIADO");
        fvNominalVal1.addElement("UNIONLIBRE");
        fvNominalVal1.addElement("DESCONOCIDO");
        fvNominalVal1.addElement("SOLTERO");
        fvNominalVal1.addElement("CASADO");
        fvNominalVal1.addElement("VIUDO");
        Attribute Attribute1 = new Attribute("MARITALSTATUS", fvNominalVal1);

        FastVector fvNominalVal2 = new FastVector(3);
        fvNominalVal2.addElement("P");
        fvNominalVal2.addElement("A");
        fvNominalVal2.addElement("F");
        Attribute Attribute2 = new Attribute("HOUSETYPE", fvNominalVal2);

        FastVector fvNominalVal3 = new FastVector(4);
        fvNominalVal3.addElement("AF");
        fvNominalVal3.addElement("CO");
        fvNominalVal3.addElement("EC");
        fvNominalVal3.addElement("VE");

        Attribute Attribute3 = new Attribute("NATIONALITY", fvNominalVal3);

        FastVector fvNominalVal4 = new FastVector(4);
        fvNominalVal4.addElement("0-10000");
        fvNominalVal4.addElement("10000-40000");
        fvNominalVal4.addElement("40000-70000");
        fvNominalVal4.addElement("70000");
        Attribute Attribute4 = new Attribute("INCOME", fvNominalVal4);


        FastVector fvNominalVal5 = new FastVector(5);
        fvNominalVal5.addElement("0");
        fvNominalVal5.addElement("1");
        fvNominalVal5.addElement("2");
        fvNominalVal5.addElement("3");
        fvNominalVal5.addElement("4");
        Attribute Attribute5 = new Attribute("CHILD", fvNominalVal5);

        FastVector fvNominalVal6 = new FastVector(5);
        fvNominalVal6.addElement("ESPECIALIZACION");
        fvNominalVal6.addElement("NINGUNA");
        fvNominalVal6.addElement("PROFESIONAL");
        fvNominalVal6.addElement("TECNICA");
        fvNominalVal6.addElement("UNIVERSITARIO");
        Attribute Attribute6 = new Attribute("EDUCATION", fvNominalVal6);

        FastVector fvNominalVal7 = new FastVector(2);
        fvNominalVal7.addElement("0");
        fvNominalVal7.addElement("1");
        Attribute Attribute7 = new Attribute("WORKFORGOVERNMENT", fvNominalVal7);

        FastVector fvNominalVal8 = new FastVector(2);
        fvNominalVal8.addElement("YES");
        fvNominalVal8.addElement("NO");
        Attribute Attribute8 = new Attribute("LOAN", fvNominalVal8);

        FastVector fvWekaAttributes = new FastVector(9);
        fvWekaAttributes.addElement(Attribute0);
        fvWekaAttributes.addElement(Attribute1);
        fvWekaAttributes.addElement(Attribute2);
        fvWekaAttributes.addElement(Attribute3);
        fvWekaAttributes.addElement(Attribute4);
        fvWekaAttributes.addElement(Attribute5);
        fvWekaAttributes.addElement(Attribute6);
        fvWekaAttributes.addElement(Attribute7);
        fvWekaAttributes.addElement(Attribute8);
        return fvWekaAttributes;
    }
}
